package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.MateralDetailed;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MateralDetailedMapper {
    void insertMateralDetailed(MateralDetailed md);

    List<MateralDetailed> selectAllDetailedMaterial(@Param("md") MateralDetailed materalDetailed,@Param("page") int page,@Param("limit") int limit);

    void deleteDetailedDaterial(String madId);

    int selectDetailedMaterialSum(@Param("md") MateralDetailed materalDetailed);

    /*根据用料编号查询所有的使用项，仓库调用*/
    List<MateralDetailed> selectMaterlDetailedByMatId(String matId);

}
